package com.cisystem.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;

import javax.mail.internet.MimeMessage;
import java.util.Date;

/**
 * @author niushuaikui
 * @description TODO
 * @date 2023/12/15
 */
public class EmailDomain {
    private MimeMessage mimeMessage;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;
    private String sendTo;
    private String content;

    public EmailDomain(MimeMessage mimeMessage, Date operateTime, String sendTo, String content) {
        this.mimeMessage = mimeMessage;
        this.operateTime = operateTime;
        this.sendTo = sendTo;
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendTo() {
        return sendTo;
    }

    public void setSendTo(String sendTo) {
        this.sendTo = sendTo;
    }


    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
    public MimeMessage getMimeMessage() {
        return mimeMessage;
    }

    public void setMimeMessage(MimeMessage mimeMessage) {
        this.mimeMessage = mimeMessage;
    }
}
